package com.example.bookstore.service;

import com.example.bookstore.entity.Ordered;
import com.example.bookstore.entity.OrderLink;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface OrderService {

    List<Ordered> findAllOrder();

    Integer createOrder(Ordered order);

    Integer createOrderLink(OrderLink orderLink);

    List<OrderLink> findOrderLinks(Integer orderedId);

    Ordered queryMyOrdered(Integer id);
}
